---
title: 'Langchain'
---

Indexify complements LangChain by providing a robust ingestion engine for indexing large volume of multi-modal content such as PDFs, raw text, audio and video. 
It provides a Langchain retriever to retrieve context for LLMs.

## Install
<Tabs>
  <Tab title="Python">
    ```bash
    pip install indexify-langchain
    ```
  </Tab>
</Tabs>

## Initiate the retriever
<Tabs>
  <Tab title="Python">
    ```python
    params = {"name": "minilml6.embedding", "top_k": 9}
    retriever = IndexifyRetriever(client=client, params=params)
    ```
  </Tab>
</Tabs>

## Complete Examples

We developed a few examples to demonstrate the integration of LangChain with Indexify.

- [LangChain Integration with Indexify for PDF QA](https://github.com/tensorlakeai/indexify/tree/main/examples/pdf/langchain)
- [Adaptive RAG with LangGraph](https://github.com/tensorlakeai/indexify/tree/main/examples/pdf/langgraph)

